
import request from "@/utils/newrequst";

// 查询层级角色列表
export const getLevelRoleList = (data: any) => {
  return request({
    url: `/system/v1/tenant/level/page-role`, method: "post", data: data,
  });
};
// 获取全部层级接口
export const getAllLevelList = (data: any) => {
  return request({
    url: `/system/v1/tenant/level/all`, method: "post", data: data,
  });
};
// 获取层级树
export const getLevelTree = (data: any) => {
  return request({
    url: `/system/v1/tenant/level/tree`, method: "post", data: data,
  });
};
// 分页获取层级接口

export const getLevelList = (data: any) => {
  return request({
    url: `/system/v1/tenant/level/page`, method: "post", data: data,
  });
};
// 删除层级接口
export const getLevelDelete = (data: any) => {
  return request({
    url: `system/v1/tenant/level/add`, method: "post", data: data,
  });
};

// 编辑层级接口 
export const getLevelEdit = (data: any) => {
  return request({
    url: `/system/v1/tenant/level/edit`, method: "post", data: data,
  });
};
